﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TR.Domain.Entity.JH;
using TR.Domain.Entity;
using TR.Domain.Entity.BsItemType;

namespace TR.Domain.Repository.Wh_Buy_Order_hRepository
{
    public interface Iwh_Buy_Order_hRepository
    {
        //分页条件查询
        Task<List<wh_Buy_Order_h>> FenYeSelect(int mys, int dqy, string name);

        //总条数查询
        Task<int> FenYeZtsSelect();

        //信息增加
        Task<bool> InsertOrder(wh_Buy_Order_h jhzb, List<wh_orderbuy_d> ddmx);

        //信息修改
        Task<bool> UpdateOrder(wh_Buy_Order_h jHZB, List<wh_orderbuy_d> ddmx);

        //进货订单编号查询
        Task<wh_Buy_Order_h> OrderBhSelect(string tj);

        //进货明细表
        Task<List<JHXQ>> JHXQTjSelect(string tj);

        //供应商下拉框
        Task<List<bs_Supply>> bs_SupplieSelect();

        //根据供应商查询联系人和联系方式
        Task<bs_Supply> bs_SupplyTjSelect(string tj);

        //商品信息查询
        Task<List<bs_Item>> BsItemSelect(int mys, int dqy, string? tj);

        //货品条数
        Task<int> ShuLiang();
    }
}
